package com.stu.dao;

import com.stu.model.StudentAnswer;
import com.stu.model.Task;
import com.stu.model.User;

import java.sql.SQLException;
import java.util.List;

public interface TeacherDao {
  public List SelectAllStudentByTeacherAccount(String teacherAccount) throws SQLException;
  List<Task> getAllMyTask(String teacherAccount) throws SQLException;
  public List<StudentAnswer> getTaskDetail(String taskAccount) throws SQLException;
  public int isExistTaskAccount(String taskAccount) throws SQLException;
  public void addTask(Task task) throws SQLException;

  List<User> searchStudentByTeacherAccount( String userAccount,String searchText) throws SQLException;
  List<StudentAnswer> goStudentTaskDetail(  String teacherAccount,String studentAccount) throws SQLException;
  public void deleteTask(String taskAccount, String studentAccount,String isFinish) throws SQLException;
  public void deleteThisTask(String taskAccount) throws SQLException;
  public void deleteThisPersonByTeacher(String studentAccount,String userAccount) throws SQLException;

}
